package day03;

import java.util.Scanner;

//命令解析程序
public class CommandBySwitch {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        System.out.println("请选择功能：1.查询余额 2.充值 3.取款 4.取卡结束");
        int command = scan.nextInt();
        switch(command){
            case 1:
                System.out.println("查询余额");
                break;
            case 2:
                System.out.println("充值");
                break;
            case 3:
                System.out.println("取款");
                break;
            case 4:
                System.out.println("取卡结束");
                break;
            default:
                System.out.println("输入有误");
        }
    }
}
